package com.library.service.impl;

import com.library.bean.Book;
import com.library.bean.User;
import com.library.dao.BookDao;
import com.library.dao.UserDao;
import com.library.dao.impl.BookDaoImpl;
import com.library.dao.impl.UserDaoImpl;
import com.library.service.BookService;

import java.util.List;

/**
 * @Author:qjc
 * @Date: 2024/9/14 20:21
 * @Description:
 */
public class BookServiceImpl implements BookService {
    @Override
    public List<Book> selectAll() {
            // TODO Auto-generated method stub
            BookDao bookDao=new BookDaoImpl();
            List<Book> list=bookDao.bookSelect();
            if(list.size()==0) {
                System.out.println("不存在");
            }
            return list;
    }
}
